<!DOCTYPE html>
<!--suppress ThymeleafVariablesResolveInspection-->
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/assets/layui/css/layui.css">
    <script src="/assets/layui/layui.js"></script>
    <script type="text/javascript" src="/assets/js/jquery-1.11.1.js"></script>
</head>
<body>
<div align="right">
    <button class="layui-btn layui-btn-radius"
            onclick="window.location.reload()">刷新
    </button>
</div>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend>用户基本信息</legend>
</fieldset>

<div style="padding: 20px; background-color: #F2F2F2;">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md6">
            <div class="layui-card">
                <div class="layui-card-header"><p>用户信息</p></div>
                <div class="layui-card-body">
                    <a th:if="${session.user != null}">
                        <ul>
                            <li>姓名: <a th:text="${session.user.name}"></a></li>
                            <li>手机号: <a th:text="${session.user.mobile}"></a>
                            </li>
                            <li>创建时间: <a
                                    th:text="${session.user.createTime}"></a>
                            </li>
                        </ul>
                    </a>
                </div>
            </div>
        </div>
        <div class="layui-col-md6">
            <div class="layui-card">
                <div class="layui-card-header">Session & Cookie</div>
                <div class="layui-card-body">
                    <a th:if="${session != null}">
                        <ul>
                            <li>SessionId: <a th:text="${mySessionId.toString()}"></a></li>
                        </ul>
                    </a>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" th:inline="javascript">

</script>
</body>
</html>